package net.child.chess.gui;

import android.widget.BaseAdapter;
import android.view.ViewGroup;
import android.view.View;

public class SquareButtonAdapter extends BaseAdapter
{
	public SquareButtonAdapter(SquareButton[] buttons)
	{
		mButtons = buttons;
	}
	
	public int getCount()
	{
		return mButtons.length;
	}
	
	public Object getItem(int position)
	{
		return null;
	}
	
	public long getItemId(int position)
	{
		return 0;
	}
	
	//	return the button at specific position. 
	public View getView(int position, View convertView, ViewGroup parent)
	{
		return mButtons[position];
	}
	
	private SquareButton[] mButtons;
}

